<template>
  <div>
    <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
      <!-- 我是首页 -->
      <!-- 搜索框+轮播图 -->
      <indexheader></indexheader>

      <!-- 九宫格 -->
      <grid></grid>

      <!-- 热门 -->
      <hot></hot>

      <market></market>

      <like></like>

      <tabbar></tabbar>
    </van-pull-refresh>
  </div>
</template>

<script>
import tabbar from "@/components/tabbar";
import indexheader from "@/components/header";
import grid from "@/components/grid";
import hot from "@/components/hot";
import market from "@/components/market";
import like from "@/components/like"
export default {
  data() {
    return {
      active: 0,
      isLoading: false
    };
  },
  methods: {
    onRefresh() {
      setTimeout(() => {
        this.$toast("刷新成功");
        this.isLoading = false;
        this.count++;
      }, 500);
    }
  },
  components: {
    tabbar,
    indexheader,
    grid,
    hot,
    market,
    like
  }
};
</script>

<style>

</style>
